package com.ygs.secs.mapper;

import com.ygs.secs.model.EnterprisePhoto;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface EnterprisePhotoMapper {
    /**
     * delete by primary key
     *
     * @param photoid primaryKey
     * @return deleteCount
     */
    int deleteByPrimaryKey(Integer photoid);

    /**
     * insert record to table
     *
     * @param record the record
     * @return insert count
     */
    int insert(EnterprisePhoto record);

    /**
     * insert record to table selective
     *
     * @param record the record
     * @return insert count
     */
    int insertSelective(EnterprisePhoto record);

    /**
     * select by primary key
     *
     * @param photoid primary key
     * @return object by primary key
     */
    EnterprisePhoto selectByPrimaryKey(Integer photoid);

    /**
     * update record selective
     *
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKeySelective(EnterprisePhoto record);

    /**
     * update record
     *
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKey(EnterprisePhoto record);

    int updateBatch(List<EnterprisePhoto> list);

    int updateBatchSelective(List<EnterprisePhoto> list);

    int batchInsert(@Param("list") List<EnterprisePhoto> list);

    List<EnterprisePhoto> selectImgByEnterpriseID(String enterpriseID);
}